package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Order;

import java.util.Map;

public interface OrderService {
    PageResult findPage(QueryPageBean queryPageBean);

    Result order(Map map) throws Exception;

    Map findById(Integer id) throws Exception;

    Result add(Map map) throws Exception;

    Result confirmAppointment(Integer id);

    void cancelReservation(Integer id);

    void batchCancelReservation(Integer[] ids);
}
